﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="sort.aspx.cs" Inherits="appleader_weight_sort" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>序关系法</title>
    <link href="../../css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        注意：如果专家已经在做评权任务，则不能删除该专家。<br />
        <asp:Panel ID="Panel1" runat="server" 
            style="color: #FF0000">
        </asp:Panel>
    
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:appConnectionString %>" 
        
            SelectCommand="SELECT users.userid, users.username, users.realname FROM users INNER JOIN userrole ON users.userid = userrole.userid WHERE (users.organizationid = @organizationid) AND (userrole.roleid = 7) ORDER BY users.userid DESC">
        <SelectParameters>
            <asp:SessionParameter Name="organizationid" SessionField="organizationid" 
                Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <asp:GridView ID="GridView1" runat="server" 
        AutoGenerateColumns="False" CellPadding="4" DataKeyNames="userid" 
        DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" PageSize="5" 
        Width="100%">
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <Columns>
            <asp:TemplateField HeaderText="用户ID" InsertVisible="False" 
                SortExpression="userid">
                <EditItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("userid") %>'></asp:Label>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("userid") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="用户名" SortExpression="username" InsertVisible="True">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("username") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("username") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:BoundField DataField="realname" HeaderText="真实姓名" 
                SortExpression="realname" ItemStyle-HorizontalAlign="Center" >
                <HeaderStyle HorizontalAlign="Center" />
<ItemStyle HorizontalAlign="Center"></ItemStyle>
            </asp:BoundField>
            <asp:TemplateField HeaderText="已选专家">
                <ItemTemplate>
                    <asp:CheckBox ID="CheckBox1" runat="server" />
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField ControlStyle-ForeColor="Red">
                <ItemTemplate>
                    <asp:Label ID="Label5" runat="server" Text="&lt;&lt;选为专家"></asp:Label>
                </ItemTemplate>

<ControlStyle ForeColor="Red"></ControlStyle>

                <ItemStyle HorizontalAlign="Left" Width="75px" />
            </asp:TemplateField>
        </Columns>
        <PagerStyle Font-Bold="True" ForeColor="#003399" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <EditRowStyle BackColor="#999999" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    </asp:GridView>
    <hr />
        <div style="text-align: center">
            <asp:ImageButton ID="ImageButton1" runat="server" 
                ImageUrl="~/images/submit.gif" onclick="ImageButton1_Click" />
        </div>
    </div>
    </form>
</body>
</html>
